package com.pj.mq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author: szy
 * @program: pj-novel
 * @description: MQ消费者消费具体章节Url
 * @create: 2022-11-15 10:13
 **/

@Component
@RabbitListener(queues = "chaptersDetail_url")
public class BookConsume {

    @RabbitHandler
    public void simpleHandler(String msg){
        System.out.println("接收到消息了~"+msg);
    }

}
